
<?php
  /*$param = $_GET['type'];*/
  $xp = new XsltProcessor();
  // create a DOM document and load the XSL stylesheet
  $xsl = new DomDocument;
  $xsl->load('Personnes.xsl');

  //import the XSL styelsheet into the XSLT process
  $xp->importStylesheet($xsl);
  // create a DOM document and load the XML datat
  $xml_doc = new DomDocument;
  $xml_doc->load('../xml/Personnes.xml');
  if (isset($_GET['idC'])){
    $xp->setParameter('','idC',$_GET['idC']);
  }

  // transform the XML into HTML using the XSL file
  if ($html = $xp->transformToXML($xml_doc)) {
    print $html;
  } else {
    trigger_error('XSL transformation failed.', E_USER_ERROR);
  } // if
?>
